<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BudgetRight.Data.Models.ICategoryEntity>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%= ViewData["Title"] %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%= ViewData["Title"] %></h2>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="Name">Name:</label>
                <%= Html.TextBox("Name", Model.Name) %>
                <%= Html.ValidationMessage("Name", "*") %>
            </p>
            <p>
                <label for="Description">Description:</label>
                <%= Html.TextBox("Description", Model.Description) %>
                <%= Html.ValidationMessage("Description", "*") %>
            </p>
            <p>
                <label for="BudgetAmount">BudgetAmount:</label>
                <%= Html.TextBox("BudgetAmount", String.Format("{0:F}", Model.BudgetAmount)) %>
                <%= Html.ValidationMessage("BudgetAmount", "*") %>
            </p>
            <p>
                <label for="LeftId">LeftId:</label>
                <%= Html.TextBox("LeftId", Model.LeftId) %>
                <%= Html.ValidationMessage("LeftId", "*") %>
            </p>
            <p>
                <label for="RightId">RightId:</label>
                <%= Html.TextBox("RightId", Model.RightId) %>
                <%= Html.ValidationMessage("RightId", "*") %>
            </p>
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

